package com.gl.ruanzhu.outDto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gl.ruanzhu.dto.PersonalDto;
import com.gl.ruanzhu.dto.TaskIndustryDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;
import java.util.Map;

@ApiModel("TaskDto")

public class TaskOutDto {

    @ApiModelProperty("任务id")
    private int id;
    @ApiModelProperty("任务名称")
    private String taskName;
    @ApiModelProperty("任务类型")
    private String taskKind;
    @ApiModelProperty("任务父id")
    private int pid;
    @ApiModelProperty("供应方")
    private String provider;
    @ApiModelProperty("总负责人")
    private PersonalDto  leader;
    @ApiModelProperty("任务种类-领域")
    private TaskIndustryDto primaryIndustryCategory;
    @ApiModelProperty("任务种类-行业")
    private TaskIndustryDto secondaryIndustryCategory;
    @ApiModelProperty("发布时间")
    @JsonFormat(pattern  ="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("截止时间")
    @JsonFormat(pattern  ="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty("需求方电话")
    private String tel;
    @ApiModelProperty("任务状态")
    private String state;
    @ApiModelProperty("任务详情")
    private String details;
    @ApiModelProperty(" 附件名称")
    private String enclosureName;
    @ApiModelProperty(" 附件路径")
    private String enclosureUrl;
    @ApiModelProperty("任务是否完成")
    private boolean isFalish;
    @JsonFormat(pattern  ="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("任务时间")
    private Date falishTime;
    @ApiModelProperty("是否邀请")
    private boolean isPub;
    /**评价**/
    private String evaluate;

    /**父任务名称**/
    private String pName;
    /**二级行业名称**/
    private String secondaryIndustryName;

    @ApiModelProperty("")
    private List<TaskOutDto> children;

    public Date getFalishTime() {
        return falishTime;
    }

    public void setFalishTime(Date falishTime) {
        this.falishTime = falishTime;
    }

    public List<TaskOutDto> getChildren() {
        return children;
    }

    public void setChildren(List<TaskOutDto> children) {
        this.children = children;
    }

    public TaskIndustryDto getPrimaryIndustryCategory() {
        return primaryIndustryCategory;
    }

    public void setPrimaryIndustryCategory(TaskIndustryDto primaryIndustryCategory) {
        this.primaryIndustryCategory = primaryIndustryCategory;
    }

    public TaskIndustryDto getSecondaryIndustryCategory() {
        return secondaryIndustryCategory;
    }

    public void setSecondaryIndustryCategory(TaskIndustryDto secondaryIndustryCategory) {
        this.secondaryIndustryCategory = secondaryIndustryCategory;
    }

    public boolean isPub() {
        return isPub;
    }

    public void setPub(boolean pub) {
        isPub = pub;
    }

    public boolean isFalish() {
        return isFalish;
    }

    public void setFalish(boolean falish) {
        isFalish = falish;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskKind() {
        return taskKind;
    }

    public void setTaskKind(String taskKind) {
        this.taskKind = taskKind;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public PersonalDto getLeader() {
        return leader;
    }

    public void setLeader(PersonalDto leader) {
        this.leader = leader;
    }
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getEnclosureName() {
        return enclosureName;
    }

    public void setEnclosureName(String enclosureName) {
        this.enclosureName = enclosureName;
    }

    public String getEnclosureUrl() {
        return enclosureUrl;
    }

    public void setEnclosureUrl(String enclosureUrl) {
        this.enclosureUrl = enclosureUrl;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getSecondaryIndustryName() {
        return secondaryIndustryName;
    }

    public void setSecondaryIndustryName(String secondaryIndustryName) {
        this.secondaryIndustryName = secondaryIndustryName;
    }
}
